package firbi.base;

import junit.framework.TestSuite;
import android.test.InstrumentationTestRunner;
import android.test.InstrumentationTestSuite;
/** 
 * Goes through all unit tests in firbi.base
 * Run with the command:
 * adb shell am instrument \
 * 	-e class firbi.base.UnitTestRunner \
 *  -w firbi.base.tests/android.test.InstrumentationTestRunner
 * 
 */
public class UnitTestRunner extends InstrumentationTestRunner {

	@Override
	public TestSuite getAllTests() {
		TestSuite suite =  new InstrumentationTestSuite( this );
		suite.setName("Unit Testsuite");
		suite.addTestSuite(SearchUnitTest.class);
		suite.addTestSuite(StopViewUnitTest.class);
		suite.addTestSuite(DestinationView_Unit.class);
		suite.addTestSuite(FavoritesDbAdapter_Tests.class);
		
		return suite;
	}
	
	 @Override
	  public ClassLoader getLoader(){
		 return UnitTestRunner.class.getClassLoader();
	 }
}
